package com.doangeometrydash.scene;

import org.andengine.entity.sprite.Sprite;

import com.doangeometrydash.base.BaseScene;
import com.doangeometrydash.manager.SceneManager;
import com.doangeometrydash.manager.SceneManager.SceneType;

public class AboutScene extends BaseScene
{
	Sprite about;
	@Override
    public void createScene()
    {
	    about  = new Sprite(240, 160, mResourcesManager.about_region, vbom);
	    attachChild(about);
    }

	@Override
    public void onBackKeyPressed()
    {
		this.disposeScene();
		SceneManager.getInstance().loadMenuScene();
    }

	@Override
    public SceneType getSceneType()
    {
	     return SceneManager.SceneType.SCENE_ABOUT;
    }

	@Override
    public void disposeScene()
    {
	    about.dispose();
	    about.detachSelf();
	    this.dispose();
	    this.detachSelf();
    }

}
